﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000FC9 RID: 4041
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueRoom : IMessage<RogueRoom>, IMessage, IEquatable<RogueRoom>, IDeepCloneable<RogueRoom>, IBufferMessage
	{
		// Token: 0x17003322 RID: 13090
		// (get) Token: 0x0600B4D8 RID: 46296 RVA: 0x001E7EA3 File Offset: 0x001E60A3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueRoom> Parser
		{
			get
			{
				return RogueRoom._parser;
			}
		}

		// Token: 0x17003323 RID: 13091
		// (get) Token: 0x0600B4D9 RID: 46297 RVA: 0x001E7EAA File Offset: 0x001E60AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueRoomReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003324 RID: 13092
		// (get) Token: 0x0600B4DA RID: 46298 RVA: 0x001E7EBC File Offset: 0x001E60BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueRoom.Descriptor;
			}
		}

		// Token: 0x0600B4DB RID: 46299 RVA: 0x001E7EC3 File Offset: 0x001E60C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueRoom()
		{
		}

		// Token: 0x0600B4DC RID: 46300 RVA: 0x001E7ECC File Offset: 0x001E60CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueRoom(RogueRoom other) : this()
		{
			this.nHLHMBLGMHB_ = other.nHLHMBLGMHB_;
			this.siteId_ = other.siteId_;
			this.curStatus_ = other.curStatus_;
			this.roomId_ = other.roomId_;
			this.pOMBBDDANNJ_ = other.pOMBBDDANNJ_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B4DD RID: 46301 RVA: 0x001E7F2C File Offset: 0x001E612C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueRoom Clone()
		{
			return new RogueRoom(this);
		}

		// Token: 0x17003325 RID: 13093
		// (get) Token: 0x0600B4DE RID: 46302 RVA: 0x001E7F34 File Offset: 0x001E6134
		// (set) Token: 0x0600B4DF RID: 46303 RVA: 0x001E7F3C File Offset: 0x001E613C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NHLHMBLGMHB
		{
			get
			{
				return this.nHLHMBLGMHB_;
			}
			set
			{
				this.nHLHMBLGMHB_ = value;
			}
		}

		// Token: 0x17003326 RID: 13094
		// (get) Token: 0x0600B4E0 RID: 46304 RVA: 0x001E7F45 File Offset: 0x001E6145
		// (set) Token: 0x0600B4E1 RID: 46305 RVA: 0x001E7F4D File Offset: 0x001E614D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SiteId
		{
			get
			{
				return this.siteId_;
			}
			set
			{
				this.siteId_ = value;
			}
		}

		// Token: 0x17003327 RID: 13095
		// (get) Token: 0x0600B4E2 RID: 46306 RVA: 0x001E7F56 File Offset: 0x001E6156
		// (set) Token: 0x0600B4E3 RID: 46307 RVA: 0x001E7F5E File Offset: 0x001E615E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueRoomStatus CurStatus
		{
			get
			{
				return this.curStatus_;
			}
			set
			{
				this.curStatus_ = value;
			}
		}

		// Token: 0x17003328 RID: 13096
		// (get) Token: 0x0600B4E4 RID: 46308 RVA: 0x001E7F67 File Offset: 0x001E6167
		// (set) Token: 0x0600B4E5 RID: 46309 RVA: 0x001E7F6F File Offset: 0x001E616F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RoomId
		{
			get
			{
				return this.roomId_;
			}
			set
			{
				this.roomId_ = value;
			}
		}

		// Token: 0x17003329 RID: 13097
		// (get) Token: 0x0600B4E6 RID: 46310 RVA: 0x001E7F78 File Offset: 0x001E6178
		// (set) Token: 0x0600B4E7 RID: 46311 RVA: 0x001E7F80 File Offset: 0x001E6180
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueRoomStatus POMBBDDANNJ
		{
			get
			{
				return this.pOMBBDDANNJ_;
			}
			set
			{
				this.pOMBBDDANNJ_ = value;
			}
		}

		// Token: 0x0600B4E8 RID: 46312 RVA: 0x001E7F89 File Offset: 0x001E6189
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueRoom);
		}

		// Token: 0x0600B4E9 RID: 46313 RVA: 0x001E7F98 File Offset: 0x001E6198
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueRoom other)
		{
			return other != null && (other == this || (this.NHLHMBLGMHB == other.NHLHMBLGMHB && this.SiteId == other.SiteId && this.CurStatus == other.CurStatus && this.RoomId == other.RoomId && this.POMBBDDANNJ == other.POMBBDDANNJ && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B4EA RID: 46314 RVA: 0x001E8014 File Offset: 0x001E6214
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.NHLHMBLGMHB != 0U)
			{
				num ^= this.NHLHMBLGMHB.GetHashCode();
			}
			if (this.SiteId != 0U)
			{
				num ^= this.SiteId.GetHashCode();
			}
			if (this.CurStatus != RogueRoomStatus.None)
			{
				num ^= this.CurStatus.GetHashCode();
			}
			if (this.RoomId != 0U)
			{
				num ^= this.RoomId.GetHashCode();
			}
			if (this.POMBBDDANNJ != RogueRoomStatus.None)
			{
				num ^= this.POMBBDDANNJ.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B4EB RID: 46315 RVA: 0x001E80C3 File Offset: 0x001E62C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B4EC RID: 46316 RVA: 0x001E80CB File Offset: 0x001E62CB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B4ED RID: 46317 RVA: 0x001E80D4 File Offset: 0x001E62D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SiteId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.SiteId);
			}
			if (this.POMBBDDANNJ != RogueRoomStatus.None)
			{
				output.WriteRawTag(56);
				output.WriteEnum((int)this.POMBBDDANNJ);
			}
			if (this.CurStatus != RogueRoomStatus.None)
			{
				output.WriteRawTag(80);
				output.WriteEnum((int)this.CurStatus);
			}
			if (this.NHLHMBLGMHB != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.NHLHMBLGMHB);
			}
			if (this.RoomId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.RoomId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B4EE RID: 46318 RVA: 0x001E8184 File Offset: 0x001E6384
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.NHLHMBLGMHB != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NHLHMBLGMHB);
			}
			if (this.SiteId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SiteId);
			}
			if (this.CurStatus != RogueRoomStatus.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.CurStatus);
			}
			if (this.RoomId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RoomId);
			}
			if (this.POMBBDDANNJ != RogueRoomStatus.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.POMBBDDANNJ);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B4EF RID: 46319 RVA: 0x001E8224 File Offset: 0x001E6424
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueRoom other)
		{
			if (other == null)
			{
				return;
			}
			if (other.NHLHMBLGMHB != 0U)
			{
				this.NHLHMBLGMHB = other.NHLHMBLGMHB;
			}
			if (other.SiteId != 0U)
			{
				this.SiteId = other.SiteId;
			}
			if (other.CurStatus != RogueRoomStatus.None)
			{
				this.CurStatus = other.CurStatus;
			}
			if (other.RoomId != 0U)
			{
				this.RoomId = other.RoomId;
			}
			if (other.POMBBDDANNJ != RogueRoomStatus.None)
			{
				this.POMBBDDANNJ = other.POMBBDDANNJ;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B4F0 RID: 46320 RVA: 0x001E82B0 File Offset: 0x001E64B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B4F1 RID: 46321 RVA: 0x001E82BC File Offset: 0x001E64BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 56U)
				{
					if (num == 32U)
					{
						this.SiteId = input.ReadUInt32();
						continue;
					}
					if (num == 56U)
					{
						this.POMBBDDANNJ = (RogueRoomStatus)input.ReadEnum();
						continue;
					}
				}
				else
				{
					if (num == 80U)
					{
						this.CurStatus = (RogueRoomStatus)input.ReadEnum();
						continue;
					}
					if (num == 96U)
					{
						this.NHLHMBLGMHB = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.RoomId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x0400490A RID: 18698
		private static readonly MessageParser<RogueRoom> _parser = new MessageParser<RogueRoom>(() => new RogueRoom());

		// Token: 0x0400490B RID: 18699
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400490C RID: 18700
		public const int NHLHMBLGMHBFieldNumber = 12;

		// Token: 0x0400490D RID: 18701
		private uint nHLHMBLGMHB_;

		// Token: 0x0400490E RID: 18702
		public const int SiteIdFieldNumber = 4;

		// Token: 0x0400490F RID: 18703
		private uint siteId_;

		// Token: 0x04004910 RID: 18704
		public const int CurStatusFieldNumber = 10;

		// Token: 0x04004911 RID: 18705
		private RogueRoomStatus curStatus_;

		// Token: 0x04004912 RID: 18706
		public const int RoomIdFieldNumber = 14;

		// Token: 0x04004913 RID: 18707
		private uint roomId_;

		// Token: 0x04004914 RID: 18708
		public const int POMBBDDANNJFieldNumber = 7;

		// Token: 0x04004915 RID: 18709
		private RogueRoomStatus pOMBBDDANNJ_;
	}
}
